from www.util.operation_execl import OperationExcel
from www.base.runmethod import RunMethod
from www.data.get_data import GetData


class DependentData:

    def __init__(self,case_id):
        self.case_id = case_id
        self.opera_excel = OperationExcel()
        self.data = GetData()

    def get_case_line_data(self):
        row_data = self.opera_excel.get_row_data(self.case_id)
        return row_data



    # 执行依赖测试，获取结果
    def run_dependent(self):
        run_method = RunMethod()
        row_num = self.opera_excel.get_row_num(self.case_id)
        request_data = self.data.get_data_for_json(row_num)
        header = self.data.is_header(row_num)
        method = self.data.get_request_method(row_num)

